package com.shanhy.example.agent;

import java.util.concurrent.TimeUnit;

/**
 * Hello
 *
 * @author 单红宇
 * @date 2024-03-08 14:10:47
 */
public class Hello {

    private static final String NAME = "Tom";

    public static String hello(String name) {
        System.out.println("world");
        try {
            // 模拟暂停一秒
            TimeUnit.SECONDS.sleep(1);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        return "Hello ".concat(name);
    }

    public void show() {
        System.out.println("Hello Show, " + NAME);
    }

    public String show2() {
        System.out.println("Hello Show2, " + NAME);
        return "秀er";
    }

}
